package edu.zju.gis.dbfg.queryserver.service;

import edu.zju.gis.dbfg.queryserver.model.SearchResult;

import java.util.List;

public interface SpatialQueryService {
    SearchResult selectByPoint(String indexName, double lon, double lat);

    SearchResult selectByPolygon(String indexName, List<double[]> points);

    SearchResult selectByPointWithScroll(String indexName, double lon, double lat, String scrollId);

    SearchResult selectByPolygonWithScroll(String indexName, List<double[]> points, String scrollId);
}
